import Vue from 'vue'
import Router from 'vue-router'
import index from '@/page/index/index'
import login from '@/page/login/index'
import my from '@/page/my/index'
import repay from '@/page/repay/index'

Vue.use(Router);

export default new Router({
	routes: [
		{
			path: '/index',//首页
			name: 'index',
			component: index
		},
		{
			path: '/',
			redirect: 'index'
		},
    {
      path: '/repay',
      component: repay
    },
    {
      path: '/my',
      component: my
    },
    {
			path: '/login',
			name: 'login',
			component: login
		}
	]
})
